package cn.cckggroup.springboot.study.controller;

import cn.cckggroup.springboot.study.dto.GdsDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zz
 * @date 2023/3/1
 */
@RestController
@RequestMapping("/gds")
public class GdsController {

    @GetMapping("/get")
    public GdsDTO get(@RequestParam("gdsId") String gdsId) {
        return GdsDTO.builder().gdsId(gdsId).gdsName("大菜果").gdsPrice("100.0").build();
    }
}
